how to split an array into K subarrays

join shbcf.ru